package top.laoshuzi.designpatterns.base.created.singleton;

/**
 * 饿汉式
 */
public class Singleton1 {

    private final static Singleton1 INSTANCE = new Singleton1();

    private String name = "饿汉式";

    public static Singleton1 getInstance() {
        return INSTANCE;
    }

    private Singleton1() {
    }

    public String getName() {
        return name;
    }

}
